IPGetMacAddr


C Specification

#include <dolphin/ip.h>

#define ETH_ALEN  6   // Ethernet address length
void IPGetMacAddr( IPInterface* interface, u8* mac );

Description

IPGetMacAddr() gets the MAC (media access control) address of the specified interface.

Arguments

interface Pointer to IPInterface to get the the MAC address. Use NULL to specify the default network interface.
mac Pointer to array[ETH_ALEN] of u8 that receives the Ethernet MAC address.

Return Values

None.

See Also